package com.xzx.annotation.applicationlistener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author xinzhixuan
 * @version 1.0
 * @date 2025/5/10 17:39
 */
@Slf4j
@Component
public class MyApplicationListener2 implements ApplicationListener<MyApplicationEvent> {

    @Override
    public void onApplicationEvent(MyApplicationEvent event) {
        log.info("MyApplicationListener2监听到事件：{}", event);
    }
}
